<extend name="Base/common"/>
<block name="body">
		<!--我要当老师 资料修改-->
		<form action="__SELF__" class="form-horizontal"  method="post">
		<div id="Beture2">
			<header><a href="javascript:;" class="back" onclick="history.go(-1)"><img src="__IMG__/images/back_03.png"/></a><eq name="teaching" value="1">学习内容</eq>
			<eq name="teaching" value="2">教学内容</eq></header>
			<div class="chose list1">
				<p><strong class="f-fl">类别</strong></p>
				<ul>
					<volist name='label' id='v'>
					<li>{$v.title}</li>
					<input type="radio" name="label" value="{$v.value}" style="display: none;" <eq name="course.label" value="$v.value"> checked="checked" </eq> >
					</volist>
					<!-- lkl做老数据统计 -->
					<input type="hidden" name="oldlabel" value="{$course.label}"/> 
					<div class="clear"></div>
				</ul>
			</div>
			<div class="chose list2">
				<p>课程名称</p>
				<ul>
					<li><input type="text" name="title" value="{$course.title}">
					<!-- lkl做老数据统计 -->
					<input type="hidden" name="oldtitle" value="{$course.title}">
					</li>
				</ul>
				</div>
			<div class="chose list3">
				<p>时薪</p>
				<ul>
					<li>
						<input type="text" id="" name="salary" value="{$course.salary}" />
						<!-- lkl做老数据统计 -->
						<input type="hidden" id="" name="oldsalary" value="{$course.salary}" />
						<span>元/小时</span>
					</li>
				</ul>
			</div>
			<div class="chose list4">
				<p>自我介绍</p>
				<div class="textEar">
					<textarea name="content">{$course.content}</textarea>
					<!-- lkl做老数据统计 -->
					<input type="hidden" id="" name="oldcontent" value="{$course.content}" />
				</div>
			</div>
			<input type="hidden" name="teaching" value="{$Think.get.teaching}">
 			<input type="hidden" name="id" value="{$course.id}">
			<input type="submit" id="btn" class="ajax-post" target-form="form-horizontal" value="提交"/>
		</div>
		</form>
<style>
	.list2 ul li{width: 230px;}
	#Beture2 .list2 li input{width: 230px;}
	.chose .checked{background: orange;color: white;}
</style>
<script>
	//选择标签效果
	$('.list1 li').click(function(){
		$('.list1 li').removeClass('checked');
		$(this).addClass('checked');
		$(this).next('input[type=radio]').attr('checked',true);
	});
	//默认选中
	$('input[type=radio]:checked').prev('li').addClass('checked');
</script>
</block>